package com.lumlord.common.domain.log.monitor;

import java.io.Serializable;

import com.lumlord.common.annotation.pojo.IgnoreColumn;
import com.lumlord.common.annotation.pojo.PK;
import com.lumlord.common.annotation.pojo.Table;
import com.lumlord.common.base.BaseEntity;
import com.lumlord.service.LumlordLogService;

import java.util.Date;
import java.lang.Integer;


/**  
 * 操作日志表 SystemLog 
 * @author gpf_自动生成
 * @email 372138617@qq.com
 * @date 2019-11-05 09:15:51
 */
 @Table(value = "t_system_log",DB="yw_big_data")
public class SystemLog extends BaseEntity implements Serializable {
    @IgnoreColumn
	private static final long serialVersionUID = 1L;
	
	/** 主键ID，自增 **/
	@PK("id")	private Integer id;


	/** 区域ID **/
		private String areaId;
		
	/** 分区名称（直接存取） **/
		private String areaName;
		
	/** 操作类型（大模块名称>>小模块名称） **/
		private String operationType;
		
	/** 操作者IP **/
		private String sourceIp;
		
	/** 操作内容（描述此处操作，可携带数据） **/
		private String description;
		
	/** 操作状态（1正常；2系统异常；3业务异常；4安全异常） **/
		private Integer operationStatus;
		
	/** 添加用户名称（直接存取） **/
		private String addUserName;
        /*** 请求方法**/
		private String method;
		/** url **/
		private String url;
		/***请求参数**/
		private String args;

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getArgs() {
        return args;
    }

    public void setArgs(String args) {
        this.args = args;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
	 
			
	public String getAreaId() {
        return areaId;
    }

    public void setAreaId(String areaId) {
        this.areaId = areaId;
    }
	 
			
	public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }
	 
			
	public String getOperationType() {
        return operationType;
    }

    public void setOperationType(String operationType) {
        this.operationType = operationType;
    }
	 
			
	public String getSourceIp() {
        return sourceIp;
    }

    public void setSourceIp(String sourceIp) {
        this.sourceIp = sourceIp;
    }
	 
			
	public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
	 
			
	public Integer getOperationStatus() {
        return operationStatus;
    }

    public void setOperationStatus(LumlordLogService.SystemStatus systemStatus) {
        switch (systemStatus){
            case ZC: this.operationStatus = 1;break;
            case XTYC: this.operationStatus = 2;break;
            case YWYC: this.operationStatus = 3 ;break;
            case AQYC: this.operationStatus = 4; break;
        }
      //  this.operationStatus = operationStatus;
    }
	 
			
	public String getAddUserName() {
        return addUserName;
    }

    public void setAddUserName(String addUserName) {
        this.addUserName = addUserName;
    }
	 
			
	public SystemLog() {
        super();
    }
	
}